package com.ruoyi.jiuzai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiuzai.mapper.Table12Mapper;
import com.ruoyi.jiuzai.domain.Table12;
import com.ruoyi.jiuzai.service.ITable12Service;

/**
 * 救灾物资Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-19
 */
@Service
public class Table12ServiceImpl implements ITable12Service 
{
    @Autowired
    private Table12Mapper table12Mapper;

    /**
     * 查询救灾物资
     * 
     * @param yId 救灾物资主键
     * @return 救灾物资
     */
    @Override
    public Table12 selectTable12ByYId(Long yId)
    {
        return table12Mapper.selectTable12ByYId(yId);
    }

    /**
     * 查询救灾物资列表
     * 
     * @param table12 救灾物资
     * @return 救灾物资
     */
    @Override
    public List<Table12> selectTable12List(Table12 table12)
    {
        return table12Mapper.selectTable12List(table12);
    }

    /**
     * 新增救灾物资
     * 
     * @param table12 救灾物资
     * @return 结果
     */
    @Override
    public int insertTable12(Table12 table12)
    {
        return table12Mapper.insertTable12(table12);
    }

    /**
     * 修改救灾物资
     * 
     * @param table12 救灾物资
     * @return 结果
     */
    @Override
    public int updateTable12(Table12 table12)
    {
        return table12Mapper.updateTable12(table12);
    }

    /**
     * 批量删除救灾物资
     * 
     * @param yIds 需要删除的救灾物资主键
     * @return 结果
     */
    @Override
    public int deleteTable12ByYIds(Long[] yIds)
    {
        return table12Mapper.deleteTable12ByYIds(yIds);
    }

    /**
     * 删除救灾物资信息
     * 
     * @param yId 救灾物资主键
     * @return 结果
     */
    @Override
    public int deleteTable12ByYId(Long yId)
    {
        return table12Mapper.deleteTable12ByYId(yId);
    }
}
